package com.xtwv4love.springboot;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

//    @Value("${name}")
//    private String name;
//
//    @Value("${age}")
//    private int age;
//
//    @Value("${content}")
//    private String content;

//    @Autowired
//    private StudentProperties studentProperties;

    @RequestMapping("/hello")
    public String hello(Model m) {
//        m.addAttribute("now", DateFormat.getDateTimeInstance().format(new Date()));
        return "hello";

//        return name + ": " + age;
//        return content;
//        return studentProperties.getName() + studentProperties.getAge();
    }


}
